<div class="page-filter fr">
    <form class="layui-form layui-form-pane" action="{:url()}" method="get">
        <div class="layui-form-item">
            <label class="layui-form-label">搜索</label>
            <div class="layui-input-inline">
                <input type="text" name="q" value="{:input('get.q')}" lay-verify="required" placeholder="操作人昵称" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>
<div class="page-toolbar">
    <div class="layui-btn-group fl">
        <a href="{:url('del?table=facescore_content')}" class="layui-btn layui-btn-primary j-page-btns confirm"><i class="aicon ai-jinyong"></i>删除</a>
        <a href="{:url('?is_apply=1')}" class="layui-btn layui-btn-primary" {if condition="$is_apply eq 1"}style="background: #009688;color: #fff;border: #009688;"{/if}>只看申请上首页</a>
    </div>

</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row" lay-size="">
            <colgroup>
                <col width="4%">
                <col width="4%">
                <col width="14%">
                <col width="12%">
                <col width="13%">
                <col width="12%">
                <col width="10%">
                <col width="15%">
                <col width="8%">
                <col width="8%">
                <col width="5%">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>ID</th>
                <th>摘要</th>
                <th>缩略图</th>
                <th>打赏总钱/人数</th>
                <th>单张/整组价格</th>
                <th>操作人</th>
                <th>发布时间</th>
                <th>状态</th>
                <th>审核</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="data_list" id="vo"}
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="{$vo['id']}" lay-skin="primary"></td>
                <td><a href="{:url('reward?content_id='.$vo['id'])}" title="点击查询当前内容的打赏记录">{$vo['id']}</a></td>
                <td style="max-width: 180px;word-break:break-all">{$vo['describe']}</td>
                <td  href="{:url('content/showimgs?content_id='.$vo['id'])}" class="j-iframe-pop" style="background: url('{$vo['id']|content_img_one}');height: 120px;background-size:cover;position: relative;background-position: center center;">
                    
                    {if condition="$vo['is_apply'] eq 1"}
                    <div style="position: absolute;width: 100%;text-align: center;bottom: 0;left: 0;padding: 5px 0;background: rgba(0,0,0,0.4);color: #fff;font-size: 12px">已申请上首页</div>
                    {/if}
                </td>
                <td class="font12">
                    <a href="{:url('reward?content_id='.$vo['id'])}" title="点击查询当前内容的打赏记录">
                    RMB：￥{$vo['id']|reward_money_count=1} / {$vo['id']|reward_person_count=1}人<br>
                    MAG：￥{$vo['id']|reward_money_count=2} / {$vo['id']|reward_person_count=1}人
                    </a>
                </td>
                <td class="font12">
                    RMG：{$vo['rmb_reward_single']} / {$vo['rmb_reward_all']} <br>
                    MAG：{$vo['mag_reward_single']} / {$vo['mag_reward_all']}
                </td>
                <td >{$vo['uid']|userInfo='nick'}</td>
                <td >{$vo['create_time']}</td>
                <td><input type="checkbox" name="status" {if condition="$vo['status'] eq 1"}checked=""{/if} value="{$vo['status']}" lay-skin="switch" lay-filter="switchStatus" lay-text="推荐|不推荐" data-href="{:url('status?table=facescore_content&ids='.$vo['id'])}"></td>
                <td><input type="checkbox" name="audit" {if condition="$vo['audit'] eq 1"}checked=""{/if} value="{$vo['audit']}" lay-skin="switch" lay-filter="switchStatus" lay-text="通过|不通过" data-href="{:url('audit?table=facescore_content&ids='.$vo['id'])}"></td>
                <td>
                    <div class="layui-btn-group">
<!--                        <a href="{:url('edit?id='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe642;</i></a>-->
                        <a data-href="{:url('del?table=facescore_content&ids='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$pages}
    </div>
</form>

{include file="admin@block/layui" /}
